package com.sumainfor.zuul.controller.tenant;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.zuul.service.impl.AreaService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnNotWebApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author Meng
 * @ClassName TenantPayController
 * @date 2019/12/6 19:02
 * @description: TODO
 */
@Controller
@RequestMapping("/provider/tenant/")
public class TenantPayController {

    @Autowired
    AreaService areaService;


    @ResponseBody
    @GetMapping("/getAreaid")
    public JsonResult getAreaid(@RequestParam Map<String,Object> params){
        return areaService.getAreaid(params);
    }
}
